xen/cmdline: Work around some specific command line warnings
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 29 Jan 2019 19:07:40 +0000 (19:07 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 30 Jan 2019 17:27:44 +0000 (17:27 +0000)
commit68cda62e50c34f938747c1558117ee2c37134b30
tree6c6205be02172d9d0221926eb89a1dcc9373f37b
parentf15ff4d50011d6860e0e577b147b9f8b6670661d
xen/cmdline: Work around some specific command line warnings

Xen will warn when an unknown parameter is found in the command line.  e.g.

  (d8) [ 1556.334664] (XEN) parameter "pv-shim" unknown!

One case where this goes wrong is a workaround for an old grub bug, which
resulted in "placeholder" being prepended to the command line.

Another case is when booting a CONFIG_PV_SHIM_EXCLUSIVE build, in which the
parsing for the "pv-shim" parameter is discarded.

Introduce ignore_param() and OPT_IGNORE to cope with known cases, where
issuing a warning is the wrong course of action to take.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/pv/shim.c
xen/arch/x86/setup.c
xen/common/kernel.c
xen/include/xen/init.h